﻿using SD.Infrastructure.DTOBase;
using SlamDunk.MES.IAppService.DTOs.Outputs.ResourceContext;
using System;
using System.Runtime.Serialization;

namespace SlamDunk.MES.IAppService.DTOs.Outputs.PlanContext
{
    /// <summary>
    /// 销售订单明细数据传输对象
    /// </summary>
    [DataContract]
    public class SaleOrderDetailInfo : BaseDTO
    {
        #region 产品Id —— Guid ProductId
        /// <summary>
        /// 产品Id
        /// </summary>
        [DataMember]
        public Guid ProductId { get; set; }
        #endregion

        #region 数量 —— decimal Quantity
        /// <summary>
        /// 数量
        /// </summary>
        [DataMember]
        public decimal Quantity { get; set; }
        #endregion

        #region 生产批号 —— string ProductionBatchNo
        /// <summary>
        /// 生产批号
        /// </summary>
        [DataMember]
        public string ProductionBatchNo { get; set; }
        #endregion

        #region 排序 —— int Sort
        /// <summary>
        /// 排序
        /// </summary>
        [DataMember]
        public int Sort { get; set; }
        #endregion

        #region 描述 —— string Description
        /// <summary>
        /// 描述
        /// </summary>
        [DataMember]
        public string Description { get; set; }
        #endregion


        //导航属性

        #region 导航属性 - 产品 —— MaterialInfo ProductInfo
        /// <summary>
        /// 导航属性 - 产品
        /// </summary>
        [DataMember]
        public MaterialInfo ProductInfo { get; set; }
        #endregion
    }
}
